package com.ziyun.erp.modules.quoteParts.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;

import com.ziyun.erp.modules.quoteParts.dao.QuotePartsDao;
import com.ziyun.erp.modules.quoteParts.entity.QuotePartsEntity;
import com.ziyun.erp.modules.quoteParts.service.QuotePartsService;


@Service("quotePartsService")
public class QuotePartsServiceImpl extends ServiceImpl<QuotePartsDao, QuotePartsEntity> implements QuotePartsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<QuotePartsEntity> page = new Page<>(Integer.parseInt(params.get("page").toString()),Integer.parseInt(params.get("limit").toString()) );
        page.setRecords(this.baseMapper.selectQuotePartsList(page, params));
        return new PageUtils(page);
    }

}
